package com.boot_reggie.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.boot_reggie.domain.OrderDetail;
import com.boot_reggie.domain.Orders;
import com.boot_reggie.domain.OrdersDto;
import com.boot_reggie.domain.User;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;
import java.util.List;

public interface OrderService extends IService<Orders> {
    Long submit(Orders orders, HttpSession session, HttpServletRequest req, HttpServletResponse res) throws IOException;

   List<OrdersDto> getOrders(User user);

   IPage<Orders> getAll(int page,int size);

    OrdersDto getShop(Long id);

    IPage<Orders> getOrders(String order,String time1,String time2,int page,int size);

    List<Orders> getDingin();

    /*更新订单状态*/
    void updateOrders(String id);
}
